<#import "/macro.ftl" as m>
<@m.page_header title='后台' />
<div id="page-content-wrapper">

<div id="page-title">

    <h3>
    	客服参数设置
    </h3>
</div>
<div class="pad10A">
<form id="demo-form1" action="/setting/customer/update" class="col-md-12" method="POST">
	<#list list as parameter>
    <div class="form-row">
        <div class="form-label col-md-2">
            <label for="">
                ${parameter.memo}:
            </label>
        </div>
        <div class="form-input col-md-8">
            <input type="text" name="${parameter.code}"  data-trigger="change" data-required="true" class="parsley-validated" value='${parameter.value}'>
        </div>
    </div>
	</#list>
    <div class="divider"></div>
    <div class="form-row">
        <input type="hidden" name="superhidden" id="superhidden">
       <div class="form-input col-md-10 col-md-offset-2">
                    <a href="javascript:;" class="btn medium primary-bg radius-all-4 col-md-2" id="demo-form-2-valid">修改</a>
        </div>
    </div>   

</form>

</div>
<script>
$(function(){
	<#if msg!=null>
	$.jGrowl("${msg}", { position:"bottom-right",theme: "ui-state-default"});
	</#if>
    $("#demo-form-2-valid").click(function(){
   
    	$('#demo-form1').trigger('submit');
    });
    
})
</script>